<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- @auther赵靖懿 -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>查看所有票务信息</title>
<link rel="stylesheet" type="text/css" href="js/util/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="js/util/easyui/themes/icon.css">
<script type="text/javascript" src="js/util/jquery/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="js/util/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="js/util/easyui/locale/easyui-lang-zh_CN.js"></script>

<!-- page controller -->
<script type="text/javascript" src="js/index/showTickets.api.js"></script>    
</head>
<body>
<div class="easyui-panel" title="showTickets" style="width:100%;max-width:1000px;padding:30px 60px;">
<div id="toolbar">
		<a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true"
			onclick=Ticket();>添加</a> <a href="#" class="easyui-linkbutton"
			iconCls="icon-edit" plain="true" onclick=editUser();>修改</a> <a
			href="#" class="easyui-linkbutton" iconCls="icon-remove" plain="true"
			onclick=removeTicket();>删除</a>
	</div>
    <table id="pageGrid" class="easyui-datagrid"></table>
       <div id="dlg" class="easyui-dialog"
		style="width: 400px; height: 380px; padding: 10px 20px" closed="true"
		buttons="#dlg-buttons">
		<div class="ftitle">票务信息</div>
		<form id="fm" method="post" novalidate>

			<div class="fitem">
				<label> 车次: </label> <input name="trainNumber" id="trainNumber" 
					class="easyui-validatebox" required="true">
			</div>
			
			<div class="fitem">
				<label> 始发站: </label> <input name="startStation" id="startStation"  class="easyui-validatebox"
					required="true">
			</div>
			<div class="fitem">
				<label> 终点站: </label> <input name="terminalStation" id="terminalStation"
					class="easyui-validatebox" required="true">
			</div>
			<div class="fitem">
				<label> 发车时间: </label> <input class="easyui-datetimebox" id="time"
					name="time" data-options="required:true"
					style="width:200px">
			</div>
			<div class="fitem">
				<label> 价格: </label> <input name="price" id="price" class="easyui-validatebox"
					required="true">
			</div>
			<div class="fitem">
				<label> 余票数: </label> <input name="remainingTickets" id="remainingTickets"
					class="easyui-validatebox" required="true">
			</div>
		</form>
	</div>
	<div id="dlg-buttons">
		<a href="#" class="easyui-linkbutton" iconCls="icon-ok"
			onclick=saveUser();>保存</a> <a href="#" class="easyui-linkbutton"
			iconCls="icon-cancel" onclick="javascript:$('#dlg').dialog('close');">取消</a>
	</div>
</div>

</body>
</html>